<?php

/**
 * EtiUser form.
 *
 * @package    news
 * @subpackage form
 * @author     Your name here
 * @version    SVN: $Id: sfDoctrineFormTemplate.php 23810 2009-11-12 11:07:44Z Kris.Wallsmith $
 */
class EtiUserForm extends BaseEtiUserForm
{
  public function configure()
  {
      unset(
              $this['created_at'], $this['updated_at'],
              $this['status'], $this['token']
      );
      $this->widgetSchema->setLabels(array(
          'username'    =>  'Nazwa użytkownika',
          'password'    =>  'Hasło',
          'firstname'   =>  'Imię',
          'lastname'    =>  'Nazwisko',
          'phone'       =>  'Telefon komórkowy',
          'signature'   =>  'Podpis (w stopce na forum)'
      ));
      $this->validatorSchema['avatar'] = new sfValidatorFile(array(
          'required'    => false,
          'path'        => sfConfig::get('sf_upload_dir').'/avatars/',
          'mime_types'  => 'web_images'
      ));
  }
}
